package com.xhy.tool.controller;

import com.xhy.tool.annotation.Authority;
import com.xhy.tool.authority.UnifyAuthorityVerify;
import com.xhy.tool.service.UserService;
import com.xhy.tool.utils.R;
import com.xhy.tool.utils.SpringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author: Xhy
 * CreateTime: 2022-06-13 10:21
 */
@RestController
public class TestController {

    @Autowired
    private UserService userService;

    @Authority(value = "qaq")
    @GetMapping("/test")
    public R test(){
        userService.test();
        return R.ok();
    }
}
